<div style="font-size:10pt;" class="color">
    <a href="{url link='public.groups'}">{language text="groups"}</a>
    &gt;&gt;
    {language text="my_groups"}
</div>
<br />
<table style="width: 100%;" cellpadding="4" cellspacing="0">
<tr>
    <td class="border2">
        <table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
            <td class="block_header">{language text="my_groups_997"}</td>
        </tr>
        </table>
    
        {if $iCnt eq 0}
        	<div style="font-size:10pt;padding:10px;">
        	{language text="no_groups_added_yet"}...
         	</div>
        {else}
        	<div style="font-size:8pt;">
        	{str_replace text="`viewing_ifrom_ito_out_of_icnt`" iFrom="`$iFrom`" iTo="`$iTo`" iCnt="`$iCnt`" }
        	
        	{include file="$sRootPath/_blocks/pager_nav_button.html"}
        
        	<div style="text-align:center;">
        	
        	<table style="width:100%;margin-left:auto;margin-right:auto;" cellpadding="5">
        	
        	{foreach from=$aItems item=aItem name=aitems}
        		
        		{if $smarty.foreach.aitems.iteration is not div by 2}<tr>{/if}
        	
        		<td style="vertical-align:middle;text-align:center;font-size:8pt;" class="color">
        			<div style="padding:5px;"><a href="{url link='public.groups.view' id=$aItem.id}">{$aItem.title|strip_tags|clean}</a></div>
        			<a href="{url link='public.groups.view' id=$aItem.id}">
        			{img max_width="100" max_height="100" alt="" src="`$sImageUrl`thumb/`$aItem.galid`.jpg" src_def="`$sImageUrl``$aItem.galid`.jpg" src_def2="design/pic/noimage.jpg"  border="0"}
        			</a>
        			{if $aItem.user != $sUser}
        				<div><a class="link_action" href="{url link='public.groups.mygroups' id=$aItem.id delete=$aItem.memid}"> [ {language text="remove"} ] </a></div>
        			{else}
        				<div><a class="link_action" href="{url link='public.groups.edit' id=$aItem.id}">[ {language text="moderator"} ]</a></div>
        			{/if}
        		</td>
        	
        		{if $smarty.foreach.aitems.iteration is div by 2}</tr>{/if}
        	
        	{/foreach}
        	
        	{if $smarty.foreach.aitems.iteration is not div by 2}<td>&nbsp;</td>{/if}
        	
        	</table>
        	
        	</div>
        	
        	{include file="$sRootPath/_blocks/pager_nav_button.html"}
        		
        	</div>
        {/if}
    </td>
</tr>
</table>